package com.github.jiangxch.rpc.config;

import com.github.jiangxch.rpc.common.model.Pair;
import com.github.jiangxch.rpc.serialization.Serializer;
import com.github.jiangxch.rpc.transport.ChannelHandler;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: jiangxch
 * @date: 2021/2/19 下午11:03
 */
@Data
public class ServiceConfig {
    /** Map[service全类名,[service类class,service实现对象]] */
    private Map<String, Pair<Class,Object>> providerClassNameClassAndImplMap = new HashMap<>();
    private Serializer serializer;
    private ChannelHandler channelHandler;
}
